﻿<%@ Page Language="C#" MasterPageFile="~/Member/UserManage.master" AutoEventWireup="true"
    CodeFile="MemberProductAdd.aspx.cs" Inherits="Member_Trade_MemberProductAdd"
    Title="添加我要加入产品库" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContInfo" runat="Server">
    <div id="sub_content">
        <div class="pagetitle">
            友情提示:</div>
    </div>
    <asp:DataList ID="dlProducts" runat="server" DataKeyField="ID" Width="80%" OnItemDataBound="dlProducts_ItemDataBound"
        CellPadding="4" ForeColor="#333333">
        <HeaderTemplate>
            <table width="100%" style="border: 1px #000000">
        </HeaderTemplate>
        <ItemTemplate>
            <table cellpadding="0" cellspacing="0" width="100%">
                <tr>
                    <td width="100">
                        <a href="../..<%# DataBinder.Eval(Container.DataItem, "Picture")%>">
                            <img src="../..<%# DataBinder.Eval(Container.DataItem, "Picture")%>" border="0" /></a>
                    </td>
                    <td>
                        <table>
                            <tr>
                                <td>
                                    【产品名称】：<font color="blue"><%# DataBinder.Eval(Container.DataItem, "Name")%></font>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <font color="gray">【产品说明】：
                                        <%#  DataBinder.Eval(Container.DataItem, "Detail").ToString().Length > 40 ? DataBinder.Eval(Container.DataItem, "Detail").ToString().Substring(0, 40) : DataBinder.Eval(Container.DataItem, "Detail").ToString()%>
                                    </font>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    【供应商列表】 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="MemberProductEdit.aspx?productID=<%# Eval("ID") %>">
                                        您想固定靠前吗？</a>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Table ID="supply" runat="server">
                                    </asp:Table>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Button ID="btnAdd" runat="server" Text="我也有这种产品" CommandArgument='<%# Eval("ID") %>'
                                        OnCommand="btnAdd_Command" />
                                </td>
                            </tr>
                            <tr>
                                <td align="right">
                                    <asp:Label ID="Label1" runat="server" ForeColor="green" Text="申请等待管理员审核通过中..." Visible="false"></asp:Label>
                                    <asp:Label ID="Label2" runat="server" Text="成为供应商已经审核通过." ForeColor="green" Visible="false"></asp:Label>
                                    <asp:Label ID="Label3" runat="server" ForeColor="red" Text="审核未通过!." Visible="false"></asp:Label>
                                    <asp:LinkButton ID="LinkButton1" runat="server" Visible="false" ForeColor="red" Font-Underline="false"
                                        OnClientClick="return confirm('你确定要撤消供应吗?')" CommandArgument='<%# DataBinder.Eval(Container.DataItem,"ID")%>'
                                        OnCommand="LinkButton1_Command">撤消供应</asp:LinkButton>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </ItemTemplate>
        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <SelectedItemStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
        <AlternatingItemStyle BackColor="White" />
        <ItemStyle BackColor="#EFF3FB" BorderWidth="0px" />
        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
    </asp:DataList>
    <div class="Paging">
        <p>
            总记录数：<asp:Label ID="txt_pageCount" runat="server"></asp:Label>
            页码：<asp:Label ID="txt_begin" runat="server"></asp:Label>/<asp:Label ID="txt_pageAll"
                runat="server"></asp:Label>
            <asp:LinkButton ID="btn_pageFirst" runat="server" OnClick="btn_pageFirst_Click">首页</asp:LinkButton>
            <asp:LinkButton ID="btn_pageLast" runat="server" OnClick="btn_pageLast_Click">上一页</asp:LinkButton>
            <asp:LinkButton ID="btn_pageNext" runat="server" OnClick="btn_pageNext_Click">下一页</asp:LinkButton>
            <asp:LinkButton ID="btn_pageFoot" runat="server" OnClick="btn_pageFoot_Click">末页</asp:LinkButton>
            <asp:TextBox ID="txt_PageNum" runat="server" Width="30px"></asp:TextBox>
            <asp:LinkButton ID="btn_go" runat="server" OnClick="btn_go_Click">GO</asp:LinkButton>
        </p>
    </div>
</asp:Content>
